﻿// ReSharper disable CheckNamespace
namespace System.Diagnostics // Must be in the namespace where it exists for the full framework.
// ReSharper restore CheckNamespace
{
   public static class Trace
   {
      [Conditional("DEBUG")]
      public static void TraceError(string format, params object[] args)
      {
         Debug.WriteLine("Error:" + format, args);
      }

      [Conditional("DEBUG")]
      public static void TraceInformation(string format, params object[] args)
      {
         Debug.WriteLine("Info: " + format, args);
      }

      [Conditional("DEBUG")]
      public static void TraceWarning(string format, params object[] args)
      {
         Debug.WriteLine("Warning: " + format, args);
      }
   }
}
